# 导入tushare
import tushare as ts
import numpy as np
import pandas as pd
import talib
import matplotlib.pyplot as plt
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
# 初始化pro接口
pro = ts.pro_api('ec96d72beabc6921f072fe9fad3f0cd43649f3f425b06ed8d0d59f64')

# 拉取数据
df = pro.daily(**{
    "ts_code": "",
    "trade_date": "",
    "start_date": 20150101,
    "end_date": 20191231,
    "offset": "",
    "limit": ""
}, fields=[
    "ts_code",
    "trade_date",
    "open",
    "high",
    "low",
    "close",
    "pre_close",
    "change",
    "pct_chg",
    "vol",
    "amount"
])



df = df.set_index('trade_date')

#remnjfei

print("我爱你，能看见吗亲爱的")